package com.miyu.system.pojo.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import lombok.Data;

/**
 * 字典通用类;
 * @author : miyu
 * @date : 2022-9-30
 */
@ApiModel(value = "字典通用类",description = "")
@Data
@Entity
@Table(name="sys_dict_item")
public class SysDictItem implements Serializable,Cloneable{
    /** 主键 */
    @Id
    @ApiModelProperty(name = "主键",notes = "")
    @Column(name = "item_id", nullable = false, length =32 )
    private String itemId ;
    /** 字典类key */
    @ApiModelProperty(name = "字典类key",notes = "")
    @Column(name = "dict_id", nullable = true, length =32 )
    private String dictId ;
    /** 字典类编码 */
    @ApiModelProperty(name = "字典类编码",notes = "")
    @Column(name = "item_code", nullable = true, length =20 )
    private String itemCode ;
    /** 字典类名称 */
    @ApiModelProperty(name = "字典类名称",notes = "")
    @Column(name = "item_name", nullable = true, length =50 )
    private String itemName ;
    /** 是否停用 */
    @ApiModelProperty(name = "是否停用",notes = "")
    @Column(name = "is_stop", nullable = true, length =1 )
    private String isStop = "0" ;
    /** 排序 */
    @ApiModelProperty(name = "排序",notes = "")
    @Column(name = "order_num", nullable = true, length =10 )
    private Integer orderNum ;
}